<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--
@html_name: 15promise-catch
@description: The past cannot be redeemed, the future can be changed.
@author: Jason Black
@create: 2023/6/26 09:07:35
-->
<Script>
  const p = new Promise((resolve,reject)=>{
    setTimeout(()=>{reject("error")},1000)
  })
  p.catch(reason => {
    console.warn(reason)
    console.error(reason)
    console.log(reason)
  })
</Script>
</body>
</html>